
<!DOCTYPE html>
<html manifest="/appcache/act/2651">
<head>
<meta charset="utf-8">
<title>{$brand['bname']}</title>
<meta name="viewport"
	content="initial-scale=1.0,maximum-scale=1,user-scalable=no">
<meta name="apple-touch-fullscreen" content="YES" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="sharecontent" data-msg-img="" data-msg-title=""
	data-msg-content="" data-msg-callBack="" data-line-img=""
	data-line-title="" data-line-callBack="" />
<script type="text/javascript"
	src="../addons/mon_brand/js/offline.js?1397525361"></script>
<link rel="stylesheet" type="text/css"
	href="../addons/mon_brand/css/copyright.css?1376447814" />
<link rel="stylesheet" type="text/css"
	href="../addons/mon_brand/css/style.css?1401343690" />
<link rel="stylesheet" type="text/css"
	href="../addons/mon_brand/css/add2home.css?1397525361" />
<link rel="stylesheet" type="text/css"
	href="../addons/mon_brand/css/video-js.css?1392792644" />
<link rel="stylesheet" type="text/css"
	href="../addons/mon_brand/css/flexslider.css?1375095688" />

<link rel="stylesheet" type="text/css"
	href="../addons/mon_brand/css/sweet-alert.css" />
<style>

</style>

</head>
<body>
	<header
		style="position: fixed; z-index: 0; left: 0; right: 0; overflow: hidden;"
		class="jumbotron subhead">
		<div class="container-fluid"
			style="padding: 0; margin: 0; overflow: hidden;">
			<img width="100%" id="bg" src="{$_W['attachurl']}{$brand['pic']}"
				style="margin: 0; padding: 0; border: 0;" />
		</div>
	</header>
	<div class="container-fluid" id="box"
		style="position: relative; z-index: 10; top: 900px; padding: 0;">
		<div class="row-fluid">
			<div class="span12">
				<div id="scrollBtn"
					style="position: relative; text-align: center; overflow: hidden; top: 28px; cursor: pointer; margin: 0;"
					class="PullUp">
					<img src="../addons/mon_brand/images/pull_up.png">
				</div>
				<div
					style="background: rgba(256, 256, 256, 0.8); box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);">
					<h4
						style="text-align: center; padding-top: 20px; padding-bottom: 16px;"
						class="page-header">{$brand['bname']}</h4>
					<div class="module" data-layout="25415" data-type="info">
						<h4 class="module-title">{$brand['bname']}</h4>
						<div class="module-content">{$brand['intro']}</div>
						<div class="module-footer" data-type="switch" data-down="查看更多"
							data-up="收起更多">查看更多</div>
					</div>
					<!-- <div class="module">
						<h4 class="module-title">十里银滩 风景无限</h4>
						<div class="module-content">
							<video id="video_25417" controls preload="none" width="100%"
								height="210" poster="../addons/mon_brand/images/51d129d14f45c25417.2.jpg"
								data-setup="{}">
								<source type="video/mp4"
									src="../addons/mon_brand/images/51d129e4d251125417.mp4" />
								您的浏览器不支持HTML5视频播放！
							</video>
						</div>
					</div> -->

					{if !empty($notes)} {loop $notes $note}
					<div class="module" data-layout="25411" data-type="info">
						<h4 class="module-title">{$note['title']}</h4>
						<div class="module-content">{$note['note']}</div>
						<div class="module-footer" data-type="switch" data-down="查看更多"
							data-up="收起更多">查看更多</div>
					</div>
					{/loop} {/if} {if !empty($images)} {loop $images $image}
					<div class="module" data-layout="25409" data-type="info">
						<h4 class="module-title">{$image['title']}</h4>
						<div class="module-content">
							<a href="{php echo $this->createMobileUrl('imageDetail',array("bid"=>$brand['id'],'id'=>$image['id']))}"><img src="{$_W['attachurl']}{$image['url']}" width="100%" /></a>
						</div>
					</div>
					{/loop} {/if} {if !empty($products)}
					<div class="module">
						<h4 class="module-title">产品展示</h4>
						<div class="module-content">
							<ul id="infolist-box" class="list_type">


								{loop $products $product}
								<li data-infolist-uid="17434" data-infolist-index="0"><a
									href="{php echo $this->createMobileUrl('productDetail',array("bid"=>$brand['id'],'id'=>$product['id']))}"> <img
										class="lazy-image" data-original="{$_W['attachurl']}{$product['image']}"
										width="64" height="64" alt="" /> <strong>{$product['pname']}</strong><br />
										{$product['summary']}
								</a></li> {/loop}


							</ul>
						</div>
						<div class="module-footer" data-type="switch_all" data-down="查看全部"
							data-up="收起">查看全部</div>
					</div>
					{/if} {if !empty($brand['pptname'])}
					<div class="module">
						<h4 class="module-title">{$brand['pptname']}</h4>
						<div class="module-content">
							<section class="slider">
								<div class="flexslider_normal" style="margin: 0px;">
									<ul class="slides">
										<li><img src="{$_W['attachurl']}{$brand['ppt1']}" style="width: 100%;" /></li>
										<li><img src="{$_W['attachurl']}{$brand['ppt2']}" style="width: 100%;" /></li>
										<li><img src="{$_W['attachurl']}{$brand['ppt3']}" style="width: 100%;" /></li>
									</ul>
								</div>
							</section>
						</div>
					</div>
					
					{if !empty($brand['intro2'])}
					<div class="module" data-layout="25415" data-type="info">
						<h4 class="module-title">{$brand['bname']}</h4>
						<div class="module-content">{$brand['intro2']}</div>
						<div class="module-footer" data-type="switch" data-down="查看更多"
							data-up="收起更多">查看更多</div>
					</div>
					{/if}
					
					{/if} {if $brand['showMsg']==1}
					<div class="module" data-layout="25411" data-type="info">
						<h4 class="module-title">留言</h4>
						<div class="module-content">


							<table width="100%">
								<tbody>
									<tr>
										<td width="10%" align="left">姓名:</td>
										<td width="90%"><input class="name" id="uname"
											name="uname" type="text" style="width: 90%"></td>
									</tr>
									
									<tr>
										<td width="10%" align="left">地址:</td>
										<td><input class="name" id="address" name="address" type="text"
											width="90%" style="width: 90%"></td>
									</tr>
									<tr>
										<td width="10%" align="left">电话:</td>
										<td><input class="name" id="tel" name="tel" type="text"
											width="90%" style="width: 90%"></td>
									</tr>

									<tr>
										<td align="left" width="10%" style="vertical-align: top">留言:</td>
										<td>
												<input class="name" id="content" name="content" type="text"
											width="90%" style="width: 90%">
												</td>
									</tr>
									<tr>
										<td colspan="2" align="center">
										<input class="submit"
											id="msgSubmit" type="button"  value="提交">
										</td>
									</tr>
								</tbody>
							</table>




						</div>

					</div>
					{/if}
					<div style="height: 5px;"></div>
					<!-- <div id="yl-copyright">
<dl>
<dt>
<img src="images/copyright_icon-final.png"/>
</dt>
<dd>
<span><b>Yunlai.cn</b> 技术提供</span>
</dd>
</dl>
</div>  -->
					<div class="hackWindow" style="height: 48px"></div>
				</div>
			</div>
		</div>
		<div id="footer" class="footerbar"
			style="border-radius: 0px; position: fixed; bottom: 0; z-index: 100; width: 100%;">
			<ul class="ui-navbar">

				<li class="ui-block" style="width: 30%;"><a class="ui-btn-up-a"
					href="{$brand['btnUrl']}"> <span class="ui-btn-inner"
						id="fastcall">{$brand['btnName']}</span>
				</a></li>
				
				
				<li class="ui-block" style="width: 30%;"><a class="ui-btn-up-a"
					href="{$brand['btnUrl2']}"> <span class="ui-btn-inner"
						id="fastcall">{$brand['btnName2']}</span>
				</a></li>
				
				<li class="ui-block" style="width: 30%;"><a class="ui-btn-up-a"
					href="{$brand['btnUrl3']}"> <span class="ui-btn-inner"
						id="fastcall">{$brand['btnName3']}</span>
				</a></li>

			<!-- 	<li class="ui-block" style="width: 30%;"><a class="ui-btn-up-a"
					href="tel:{$brand['tel']}"> <span class="ui-btn-inner"
						id="fastcall">拨打电话</span>
				</a></li>
				<li class="ui-block" style="width: 30%;"><a
					class="ui-btn-up-a share-btn"> <span class="ui-btn-inner"
						id="share">分享好友</span>
				</a></li> -->
			</ul>
		</div>
	</div>
	<div class="share_box">
		<a
			href="http://service.weibo.com/share/share.php?title={$brand['bname']}&url={$shareUrl}"
			target="_blank"> <img
			src="../addons/mon_brand/images/sinaminiblog.png" /> <br /> <span>新浪微博</span>
		</a> <a
			href="http://share.v.t.qq.com/index.php?c=share&a=index&title={$brand['bname']}&url={$shareUrl}"
			target="_blank"> <img
			src="../addons/mon_brand/images/qqmb.png" /> <br /> <span>腾讯微博</span>
		</a> <a
			href="http://widget.renren.com/dialog/share?resourceUrl={$shareUrl}"
			target="_blank"> <img
			src="../addons/mon_brand/images/renren.png" /> <br /> <span>人人网</span>
		</a> <a
			href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={$shareUrl}"
			target="_blank"> <img
			src="../addons/mon_brand/images/qzone.png" /> <br /> <span>QQ空间</span>
		</a>
		<div class="share-cancel-btn btn btn-block">取消</div>
	</div>
	<div class="dialog" id="dialog" style="display: none;">
		<div class="content">
			<div class="modal-body"
				style="min-height: 50px; padding-top: 25px; text-align: center;"></div>
			<button id="close-dialog-btn" onclick="dialogClose();"
				style='background-color: #faa731; background-image: none; border: none;'>确定</button>
		</div>
	</div>
	<div class="dialog-overlay" id="dialog-overlay"></div>
	<div id="activity_id" style="display: none;">2651</div>
	<div id="channel_id" style="display: none;">1</div>
	<script type="text/javascript"
		src="../addons/mon_brand/js/jquery1.8.2.min.js?1397525361"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/share.js?1387462608"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/index.js?1397861861"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/1_jquery.touchSwipe.min.js?1393054788"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/16_lazyload.js?1393313266"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/main.js?1401343697"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/add2home.js?1404374396"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/info_more.js?1375095688"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/1_video.min.js?1375095044"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/2_video.js?1378389290"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/info_list.js?1382783586"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/1_jquery.flexslider-min.js?1375095688"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/2_slidepic.js?1397862093"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/store.js?1375095688"></script>
	<script type="text/javascript"
		src="../addons/mon_brand/js/sweet-alert.min.js"></script>
	<script>
		$(document).ready(function(){
			
			
			$("#msgSubmit").click(function(){
				var name=$("#uname").val();
				var address=$("#address").val();
				var tel=$("#tel").val();
				var msg=$("#content").val();
				
				if(name==""){
					
					swal({   title: "错误!",   text: "用户名不能为空!",   type: "error",   confirmButtonText: "确定" });
					
					return ;
				}
				
			if(address==""){
					
					swal({   title: "错误!",   text: "地址不能为空!",   type: "error",   confirmButtonText: "确定" });
					
					return ;
				}
				
				
				if(tel==""){
					swal({   title: "错误!",   text: "请输入手机号码哦!",   type: "error",   confirmButtonText: "确定" });
					return ;
				}
				 var myreg = /^1\d{10}$/;
			        if(!myreg.test(tel)) {
			        	swal({   title: "错误!",   text: "请输入有效的手机号码!",   type: "error",   confirmButtonText: "确定" });
			           
			            return ;
			        }
				
				 if(msg==""){
					swal({   title: "错误!",   text: "请输入留言内容",   type: "error",   confirmButtonText: "确定" });
					return ;
				}
				
				
				
				
				$.post("{php echo $this->createMobileUrl('SubmitMsg',array(),true)}",{"bid":{$brand['id']},"uname":name,"tel":tel,"content":msg,"address":address},function(res){
					
					
					if(res==200){
						swal("成功!", "恭喜提交成功!", "success");
						
						
						$("#uname").val("");
						$("#tel").val("");
						$("#content").val("");

						$("#address").val("");
					}else if(res==501){
						swal({   title: "错误!",   text: "品牌删除或不存在",   type: "error",   confirmButtonText: "确定" });
					}else if(res==502){
						swal({   title: "错误!",   text: "手机号码已存在，不能重复留言哦!",   type: "error",   confirmButtonText: "确定" });
					}
					
					
					
				});
				
				
				
			});
			
		});
	</script>
</body>

{php echo register_jssdk(false);}
<script type="text/javascript">


	wx.ready(function () {
		sharedata = {
			title: "{$brand['bname']}",
			desc: "{$brand['bname']}",
			link: window.location.href,
			imgUrl: "{$_W['attachurl']}{$brand['pic']}",
			success: function(){

			},
			cancel: function(){

			}
		};
		wx.onMenuShareAppMessage(sharedata);
		wx.onMenuShareTimeline(sharedata);
	});



</script>

</html>

